

from distutils.core import setup
import py2exe
import sys

from py2exe.build_exe import py2exe

if len(sys.argv) == 1:
    sys.argv.append("py2exe")
    sys.argv.append("-q")

class Target:
    def __init__(self, **kw):
        self.__dict__.update(kw)
        # for the versioninfo resources
        self.version = "0.1.0"
        self.company_name = "No Company"
        self.copyright = "no copyright"
        self.name = "py2exe sample files"


interp = Target(
    description = "Client NAK",
    create_exe = True,
    #dest_base = "client\runclient",
    script = "runclient.py",
    icon_resources = [(1, "disconnect.png")],
    bitmap_resources = [(1, "disconnect.png")]
    )


options = {
    "bundle_files": 3,
    "ascii": 0, # to make a smaller executable, don't include the encodings
    "compressed": 1, # compress the library archive
     "optimize": 2,
    "includes": "sip",
    }

setup(
    options = {"py2exe": options},
    console = [interp],
    )
